﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="SilverlightCalculator.KalkulatorControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto" Height="Auto" 
    Loaded="UserControl_Loaded" xmlns:CalculatorTestApp="clr-namespace:SilverlightCalculator" 
    HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="#FF000000">
    
	<Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
		<Grid.Background>
            <LinearGradientBrush> <!--Background="#FF2371C6" Background="#FF000000"-->
                <GradientStop Color="#E44682B4" Offset="0.022"/>
                <GradientStop Color="#E587CEEB" Offset="0.728"/>
                <GradientStop Color="#E5ADD8E6" Offset="0.536"/>
            </LinearGradientBrush>
        </Grid.Background>
		
		<Grid Margin="0,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Visible">
			<Grid Background="{x:Null}" Visibility="Collapsed">
				<Border CornerRadius="6,6,6,6" Margin="-3,-1,-2,-5" BorderBrush="#FF000000" BorderThickness="1,1,1,1">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF277DD0" Offset="0.058"/>
							<GradientStop Color="#FF69A5DE" Offset="0.826"/>
							<GradientStop Color="#FFFFFFFF" Offset="0.272"/>
						</LinearGradientBrush>
					</Border.Background>
				</Border>
				<Border CornerRadius="12,12,12,12" Margin="5,5,6,1" BorderBrush="#FF000000" BorderThickness="1,1,1,1">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF0B438E" Offset="0.214"/>
							<GradientStop Color="#FF7897C0" Offset="0.723"/>
						</LinearGradientBrush>
					</Border.Background>
				</Border>
				<Border Height="37" Background="#FFFFFFFF" CornerRadius="10,10,10,10" Margin="21.194,17.387,26.806,0" VerticalAlignment="Top" BorderBrush="#FF000000" BorderThickness="1,1,1,1">
					<TextBlock Text="0" Tag="0" TextWrapping="Wrap" FontSize="30" VerticalAlignment="Center" TextAlignment="Right" Width="359" x:Name="ScreenTextBlock1"/>
				</Border>
			</Grid>
		</Grid>
		<StackPanel Height="Auto" Margin="149.5,72.52,153.5,0" VerticalAlignment="Top" Orientation="Horizontal" d:LayoutOverrides="Width" HorizontalAlignment="Center">
			<TextBlock Opacity="0.5" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="48" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Foreground="#FF000000" Text="Silverlight" Width="Auto" Height="Auto"/>
			<TextBlock Opacity="1" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="48" FontStretch="Normal" TextWrapping="Wrap" Foreground="#FF000000" Text="Calculator" Width="Auto" Height="Auto"/>
		</StackPanel>
		<StackPanel Height="43" Margin="200,0,200,0.48" VerticalAlignment="Bottom">
			<!--<TextBlock Opacity="1" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="16" FontStretch="Normal" FontWeight="Light" TextWrapping="Wrap" Foreground="#FF000000" Text="Copyright @ 2009 Murad Mohd Zain" Height="21" Width="Auto" d:IsStaticText="True" HorizontalAlignment="Center"/>-->
			<TextBlock Opacity="0.5" FontFamily="./Fonts/Fonts.zip#Segoe Condensed" FontSize="16" FontStretch="Normal" TextWrapping="Wrap" Foreground="#FF000000" Text="muradmohdzain.spaces.live.com" Height="21" Width="Auto" HorizontalAlignment="Center"/>
		</StackPanel>
		<Grid Margin="113,81,112,89" HorizontalAlignment="Center" VerticalAlignment="Center">
			<Canvas>
				<Rectangle Stroke="Transparent"  RadiusX="28.5" RadiusY="28.5" x:Name="clockFrame" Width="415" Height="310">
				
					<Rectangle.Fill>
						<LinearGradientBrush EndPoint="0.474999994039536,1.06200003623962" StartPoint="0.469999998807907,-0.0320000015199184">
							<GradientStop Color="#E51C272B" Offset="0.339"/>
							<GradientStop Color="#E4184468" Offset="0.259"/>
						</LinearGradientBrush>
					</Rectangle.Fill>
				</Rectangle>
				<Rectangle Width="393" Height="62" RadiusX="87.5" RadiusY="14.5" x:Name="outsideBevel" Stroke="#FF848484" StrokeThickness="2" Canvas.Left="12" Canvas.Top="13"/>
				<Rectangle Width="391" Height="60" RadiusX="87.5" RadiusY="14.5" x:Name="insideBevel" Stroke="#FF575757" StrokeThickness="2" Fill="#FFCAE2F0" Canvas.Left="13" Canvas.Top="13.5"/>
				<Border Height="58" Width="372" Canvas.Left="22" Canvas.Top="14" MaxWidth="372" MaxHeight="60">
					<TextBlock Text="0" TextWrapping="Wrap" FontSize="40" Foreground="#FF364D59" Width="372" TextAlignment="Right" x:Name="ScreenTextBlock" VerticalAlignment="Top" HorizontalAlignment="Right"/>
				</Border>
			</Canvas>
			<Grid Margin="94,86,152,6">
				<CalculatorTestApp:DigitControl x:Name="btn7" Height="47" HorizontalAlignment="Left" VerticalAlignment="Top" Width="46.595"/>
				<CalculatorTestApp:DigitControl x:Name="btn8" Height="47" VerticalAlignment="Top" Width="46.595" Margin="62,0,60,0"/>
				<CalculatorTestApp:DigitControl x:Name="btn9" Height="47" VerticalAlignment="Top" Width="46.595" HorizontalAlignment="Right"/>
				<CalculatorTestApp:DigitControl x:Name="btn4" Height="47" HorizontalAlignment="Left" VerticalAlignment="Top" Width="46.595" Margin="0,57,0,0"/>
				<CalculatorTestApp:DigitControl x:Name="btn5" Height="47" VerticalAlignment="Top" Width="46.595" Margin="62,57,60,0"/>
				<CalculatorTestApp:DigitControl x:Name="btn6" Height="47" VerticalAlignment="Top" Width="46.595" HorizontalAlignment="Right" Margin="0,57,0,0"/>
				<CalculatorTestApp:DigitControl x:Name="btn1" HorizontalAlignment="Left" Width="46.595" Margin="0,0,0,57" VerticalAlignment="Bottom" Height="47"/>
				<CalculatorTestApp:DigitControl x:Name="btn2" Width="46.595" Margin="62,0,60,57" VerticalAlignment="Bottom" Height="47"/>
				<CalculatorTestApp:DigitControl x:Name="btn3" Width="46.595" HorizontalAlignment="Right" Margin="0,0,0,57" VerticalAlignment="Bottom" Height="47"/>
				<CalculatorTestApp:DigitControl x:Name="btn0" Height="47" VerticalAlignment="Bottom" Margin="0,0,60,0"/>
				<CalculatorTestApp:DigitControl x:Name="btnDot" Width="46.595" HorizontalAlignment="Right" Height="47" VerticalAlignment="Bottom"/>
			</Grid>
			<Grid Margin="26,86,26,61">
				<CalculatorTestApp:DigitControl x:Name="btnClear" Height="47" HorizontalAlignment="Left" VerticalAlignment="Top" Width="46.595"/>
				<CalculatorTestApp:DigitControl x:Name="btnEqual" Width="105.595" VerticalAlignment="Bottom" Height="47" Margin="0,0,0,2" HorizontalAlignment="Right"/>
				<CalculatorTestApp:DigitControl x:Name="btnMinus" Height="47" HorizontalAlignment="Right" VerticalAlignment="Top" Width="46.595" Margin="0,0,59,0"/>
				<CalculatorTestApp:DigitControl x:Name="btnPlus" Height="47" HorizontalAlignment="Right" VerticalAlignment="Top" Width="46.595" Margin="0,57,58,59"/>
				<CalculatorTestApp:DigitControl x:Name="btnDivide" Height="47" HorizontalAlignment="Right" VerticalAlignment="Top" Width="46.595"/>
				<CalculatorTestApp:DigitControl x:Name="btnMultiply" Height="47" HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="46.595" Margin="0,57,0,59"/>
				<CalculatorTestApp:DigitControl x:Name="btnNegate" HorizontalAlignment="Left" Width="46.595" Margin="0,57,0,0" VerticalAlignment="Top" Height="47"/>
			</Grid>
		</Grid>
	</Grid>
</UserControl>